<div class="inner-left">
<div class="col-corn-top">&nbsp;</div>
   <ul class="l-list-1">
        <?php foreach($extcatlist['data'] as $cat):?>
            <a href="<?php echo $this->baseurl("/extensions/{$cat['id']}/") . App::Helper('Utility')->text2Normalize($cat['title'])?>"><li><?php echo $cat['title'];?></a></li>
        <?php endforeach; ?>
    </ul>
<div class="col-corn-bottom">&nbsp;</div>
</div>
<div class="inner-right">
    <div class="text-filter">
        <form method="get" action="<?php echo $this->baseurl("/extensions/") ?>">
            <input type="text" class="ext-s-box" name="filterby" value="<?php echo isset($this->get['filterby']) ? $this->get['filterby'] : ""; ?>" />
            <input type="submit" value="Filter" class="ext-s-btn" />
        </form>
    </div>
    <ul class="ext-box">
    <?php if(!empty($extlist['data'])):?>
        <?php foreach($extlist['data'] as $ext):?>
        <li class="ext-node">
            <h2><?php echo $ext['title']; ?> <span class="<?php echo $ext['version-status']; ?>">(<?php echo $ext['version-status']; ?>)</span></h2>
            <ul class="ext-box-inner">
                <li>
                        <label>Author</label>
                        <?php echo App::memberManager()->Members($ext['submited-by'],'name'); ?>
                </li>
                <li>
                        <label>Category</label>
                        <?php echo App::CategorySet()->categoryIdToName($ext['category']); ?>
                </li>
                <li>
                        <label>Type</label>
                        <?php echo $ext['ext-type']; ?>
                </li>
                <li>
                        <label>Version</label>
                        <?php echo $ext['version']; ?>

                </li>
                <li>
                        <label>Download</label>
                        <?php echo $ext['downloaded']; ?>
                </li>
                <li>
                        <label>Last Update</label>
                        <?php echo App::Helper('Date')->dateFormated($ext['last-update'],'long'); ?>
                </li>
            </ul>
            <br class="clearboth" />
            <p>
                <label>Description</label>
                <?php echo $ext['description']; ?>
            </p>
            <ul class="ext-box-inner efoot">
                <li>
                        <a href="<?php echo $this->baseurl("/download-extension/src/{$ext['id']}/" . App::Helper('Utility')->text2Normalize($ext['title'])); ?>">Download</a>
                </li>
                <li>
                        <a href="<?php echo $this->baseurl("/download-extension/man/{$ext['id']}/" . App::Helper('Utility')->text2Normalize($ext['title'])); ?>">Manual</a>
                </li>
                <li>
                        <a href="#">Other Versions</a>
                </li>
            </ul>
            <div class="clearboth"></div>
        </li>
        <?php endforeach;?>
        <ul>
            <?php echo ($extlist['paging'] != "" ) ? $extlist['link'] : ""; ?>
    <?php else:?>
        <h2>Sorry! No result found </h2>
    <?php endif;?>
</div>
<div class="clearboth"></div>